home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 119
/
(Vol 119) Nov 09 2010.iso
/
Games
/
orbitrax.swf
/
scripts
/
DefineSprite_683
/
frame_1
/
PlaceObject2_409_15
/
CLIPACTIONRECORD onClipEvent(load).as
Wrap
Text File
|
2010-11-09
|
1KB
|
29 lines
onClipEvent(load){
_name = gameMain.getName();
gameMain.addObjIfHit(this,"hitZone","hitArray");
gameMain.hitArray.push(this);
hitFct = function()
{
var _loc1_ = _parent;
if(_loc1_.car._y > this._y && (gameMain.carAnim != "jumpFront" && gameMain.carAnim != "jumpSide") && _loc1_.car._x < _X + _width)
{
if(_loc1_.car.speed > _loc1_.car.skidSpeed)
{
gameMain.carAnim = "jumpFront";
gameMain.allCar.car.gotoAndStop(gameMain.carAnim);
gameMain.twins.animePts._x = _X + _height / 2;
gameMain.twins.animePts._y = _Y + _width / 2;
gameMain.twins.animePts.box.pointField.text = "+" + main.pointJump;
gameMain.twins.animePts.gotoAndPlay(1);
gameMain.ptsCounter += main.pointJump;
gameMain.ptsCounter = gameMain.ptsCounter >= 0 ? gameMain.ptsCounter : 0;
}
else
{
gameMain.allCar.car._yscale = gameMain.allCar.car._xscale = 75;
}
}
};
hitAction = hitFct;
}